﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="thanhcong.aspx.cs" Inherits="thanhcong" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script type="text/javascript">
         var time = 5; //How long (in seconds) to countdown
         var page = '<%= ResolveClientUrl("Default.aspx") %>'; //The page to redirect to
         function countDown() {
             time--;
             gett("container").innerHTML = time;
             if (time == -1) {
                 window.location = page;
             }
         }
         function gett(id) {
             if (document.getElementById) return document.getElementById(id);
             if (document.all) return document.all.id;
             if (document.layers) return document.layers.id;
             if (window.opera) return window.opera.id;
         }
         function init() {
             if (gett('container')) {
                 setInterval(countDown, 1000);
                 gett("container").innerHTML = time;
             }
             else {
                 setTimeout(init, 50);
             }
         }
         document.onload = init();
      </script>
      <style type="text/css">
        .dky 
        {
        	margin:150px auto;
        	width:900px;
        	font-size:14px;
        	border: 2px solid #078e3a;
        	border-radius: 15px;
        	-moz-border-radius: 15px;
        	-webkit-border-radius: 15px;
        	-o-border-radius: 15px;
        	color:#0a3f88;
        	height:200px;
        	vertical-align:middle;
        }
        .dky a 
        {
        	text-decoration:underline;
        }
      </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="dky" style="text-align:center">
        <h3>Bạn đã xác nhận đơn hàng thành công. Hãy theo dõi đơn hàng thông qua <a><span>Your Page</span></a></h3>
        <h4>Tự chuyển trang trong vòng <span id="container"></span> giây!</h4>
        <a href="<%=ResolveClientUrl("~Default.aspx") %>">Chuyển ngay lập tức</a>
    </div>
    </form>
</body>
</html>
